package com.gdut.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;


/**
 * Cacheable: Triggers cache popuLation.:触发将数据保存到缓存的操作
 * CacheEvict:Triggers cache eviction.:触发将数据从缓存删除的操作
 * CachePut: Updates the cache without interfering with the method execution.:不影响方法执行更新缓存
 * Caching:Regroups multiple cache operations to be applied on a method.:组合以上多个操作
 * CacheConfig: Shares some common cache-related settings atr, class-Level.:在类级别共享缓存的相同配置
 */


@EnableRedisHttpSession
@SpringBootApplication
@MapperScan("com.gdut.gulimall.product.dao")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.gdut.gulimall.product.feign")
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
